<?php

namespace app\admin\service;

use app\admin\model\BoxHotKeys;

class BoxHotKeysService extends BaseService
{
    /**
     * 构造函数
     * LevelService constructor.
     */
    public function __construct()
    {
        $this->model = new BoxHotKeys();
    }

    /**
     * 获取列表
     * @return array
     */
    public function getList(): array
    {
        $param = request()->param();
        // 查询条件
        $map = [];
        if (isset($param['scene']) && !empty($param['scene'])) {
            $map[] = ['scene', '=', $param['scene']];

        }
        if (isset($param['status']) && !empty($param['status'])) {
            $map[] = ['status', '=', $param['status']];
        }
        return parent::getList($map); // TODO: Change the autogenerated stub
    }
}